package com.bojiu.lawsearch.lawsearch.util;

public enum ResultCode {
    FAIL("100", "失败"),
    SUCCESS("200", "成功"),
    ERRORPASSWORD("300", "用户名或者密码错误"),
    TOKENOVERTIME("400", "Token过期"),
    NOAUTHENTION("500", "没有权限访问"),
    NO_SIGN("600", "未登录"),

    ERRORWORD("1000", "读取word失败"),
    ERRORCREATEEXCEL("1100", "创建excel失败"),
    NULLFIELD("1200", "字段为空"),
    SAMEPHONE("1300", "手机号已使用"),
    SAMEPASSWORD("1400", "原密码与新密码一致"),
    REGISTERED("1500", "该人员已注册"),
    SAMEMAIL("1600", "邮箱已被使用"),
    SAMECERTIFICATE("1700", "证件号号已使用"),
    SAME_DATA("1800", "重复数据"),
    ERRORCODE("1900", "验证码失败"),
    NO_MEMBER("2000", "还不是会员无法使用此功能"),
    LATE_OREDER("2100", "已被抢单"),
    AUTHENTICATION_SUCCESS("2200", "已认证"),
    PAY("2300", "需要支付");


    private String code;

    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
